# coding: utf-8
from . import db, BaseModel


class UserWordTimes(db.Model):
    __tablename__ = 'user_word_times'

    auto_id = db.Column(db.BigInteger, primary_key=True)
    user_word_id = db.Column(db.BigInteger, info='用户学习单词')
    user_id = db.Column(db.BigInteger, info='用户id')
    word_id = db.Column(db.BigInteger, info='单词id')
    learn_times = db.Column(db.BigInteger, info='学习次数')
    is_get = db.Column(db.Integer, nullable=False, server_default=db.FetchedValue(), info='是否掌握')
    is_delete = db.Column(db.Integer, nullable=False, server_default=db.FetchedValue(), info='是否删除')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建记录时间')
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='更新记录时间')
